package com.uminho.tools;

import com.uminho.egendmeprofessional.R;

/****h* tools/NotificationsDef
 * DESCRIPTION
 * Modulo que contém ferramentas de apoio à aplicação mobile.
 ****
 */
/****c* NotificationsDef/NotificationsDef
 * DESCRIPTION
 * Descreve os diferentes tipos de notificações suportados.
 ****
 */
public  class NotificationsDef {
	
	
	/****f* NotificationsDef/notificationStringId
	 * DESCRIPTION
	 * Método executado para obter a String correspondente a cada notificação.
	 * INPUTS
	 * Nome da notificação.
	 * RESULT
	 * Id do resource relativo à String.
	 ****
	 */

	public static int notificationStringId(String nameId){

		if(nameId.compareTo("account_blocked")==0) return R.string.account_blocked;
		else if(nameId.compareTo("appointment_scheduled")==0) return R.string.appointment_scheduled;
		else if(nameId.compareTo("appointment_confirmed")==0) return R.string.appointment_confirmed;
		else if(nameId.compareTo("appointment_queued")==0) return R.string.appointment_queued;
		else if(nameId.compareTo("appointment_delayed")==0) return R.string.appointment_delayed;
		else if(nameId.compareTo("appointment_pending")==0) return R.string.appointment_pending;
		else if(nameId.compareTo("appointment_reminder")==0) return R.string.appointment_reminder;
		else if(nameId.compareTo("appointment_failed")==0) return R.string.appointment_failed;
		else if(nameId.compareTo("appointment_rescheduled")==0) return R.string.appointment_rescheduled;
		else if(nameId.compareTo("exchange_pending")==0) return R.string.exchange_pending;
		else if(nameId.compareTo("exchange_request")==0) return R.string.exchange_request;
		else if(nameId.compareTo("exchange_accepted")==0) return R.string.exchange_accepted;
		else if(nameId.compareTo("exchange_rejected")==0) return R.string.exchange_rejected;
		else if(nameId.compareTo("recurrent_appointment_finished")==0) return R.string.recurrent_appointment_finished;
		else if(nameId.compareTo("recurrent_appointment_reminder")==0) return R.string.recurrent_appointment_reminder;
		else if(nameId.compareTo("review_reminder")==0) return R.string.review_reminder;
		else if(nameId.compareTo("collaborator_account_blocked")==0) return R.string.collaborator_account_blocked;
		else if(nameId.compareTo("provider_account_blocked")==0) return R.string.provider_account_blocked;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client_for_provider")==0) return R.string. recurrent_appointment_canceled_by_client_for_provider;
		else if(nameId.compareTo("exchange_performed_by_clients")==0) return R.string.exchange_performed_by_clients;
		else if(nameId.compareTo("collaborator_appointment_reminder")==0) return R.string.collaborator_appointment_reminder;
		else if(nameId.compareTo("collaborator_appointment_delayed")==0) return R.string.collaborator_appointment_delayed;
		else if(nameId.compareTo("new_evaluation")==0) return R.string.new_evaluation;
		else if(nameId.compareTo("colleague_collaborator_late")==0) return R.string.colleague_collaborator_late;
		else if(nameId.compareTo("client_late")==0) return R.string.client_late;
		else if(nameId.compareTo("collaborator_recurrent_appointment_finished")==0) return R.string.collaborator_recurrent_appointment_finished;
		else if(nameId.compareTo("evaluation_reported")==0) return R.string.evaluation_reported;	
		else if(nameId.compareTo("exchange_accepted_for_collaborator")==0) return R.string.exchange_accepted_for_collaborator;		
		else if(nameId.compareTo("appointment_pending_for_collaborator")==0) return R.string.appointment_pending_for_collaborator;
		else if(nameId.compareTo("client_late_for_collaborator")==0) return R.string.client_late_for_collaborator;
		else if(nameId.compareTo("exchange_accepted_for_provider")==0) return R.string.exchange_accepted_for_provider;
		else if(nameId.compareTo("appointment_pending_for_provider")==0) return R.string.appointment_pending_for_provider;
		else if(nameId.compareTo("appointment_canceled_by_client")==0) return R.string.appointment_canceled_by_client;
		else if(nameId.compareTo("appointment_canceled_by_client_for_collaborator")==0) return R.string.appointment_canceled_by_client_for_collaborator;
		else if(nameId.compareTo("appointment_canceled_by_client_for_provider")==0) return R.string.appointment_canceled_by_client_for_provider;
		else if(nameId.compareTo("recurrent_appointment_canceled")==0) return R.string.recurrent_appointment_canceled;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client")==0) return R.string.recurrent_appointment_canceled_by_client;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client_for_collaborator")==0) return R.string.recurrent_appointment_canceled_by_client_for_collaborator;
		else if(nameId.compareTo("appointment_canceled_by_collaborator")==0) return R.string.appointment_canceled_by_collaborator;
		else if(nameId.compareTo("appointment_canceled_by_collaborator_for_collaborators")==0) return R.string.appointment_canceled_by_collaborator_for_collaborators;
		else if(nameId.compareTo("appointment_canceled_by_collaborator_for_provider")==0) return R.string.appointment_canceled_by_collaborator_for_provider;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collaborator")==0) return R.string.recurrent_appointment_canceled_by_collaborator;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collab_for_collabs")==0) return R.string.recurrent_appointment_canceled_by_collab_for_collabs;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collab_for_prov")==0) return R.string.recurrent_appointment_canceled_by_collab_for_prov;
		else if(nameId.compareTo("appointment_confirmed_for_collaborator")==0) return R.string.appointment_confirmed_for_collaborator;
		else if(nameId.compareTo("appointment_confirmed_for_provider")==0) return R.string.appointment_confirmed_for_provider;
		else return R.string.unknownnotification;

	}

	
	public static int notificationResourceId(String nameId){

		if(nameId.compareTo("account_blocked")==0) return R.drawable.ic_stat_blocked;
		else if(nameId.compareTo("appointment_scheduled")==0) return R.drawable.ic_stat_scheduled;
		else if(nameId.compareTo("appointment_confirmed")==0) return R.drawable.ic_stat_confirmed;
		else if(nameId.compareTo("appointment_queued")==0) return R.drawable.ic_stat_queue;
		else if(nameId.compareTo("appointment_delayed")==0) return R.drawable.ic_stat_delayed;
		else if(nameId.compareTo("appointment_pending")==0) return R.drawable.ic_stat_pending;
		else if(nameId.compareTo("appointment_reminder")==0) return R.drawable.ic_stat_reminder;
		else if(nameId.compareTo("appointment_failed")==0) return R.drawable.ic_stat_failed;
		else if(nameId.compareTo("appointment_rescheduled")==0) return R.drawable.ic_stat_rescheduled;
		else if(nameId.compareTo("exchange_pending")==0) return R.drawable.ic_stat_pending;
		else if(nameId.compareTo("exchange_request")==0) return R.drawable.ic_stat_exchange;
		else if(nameId.compareTo("exchange_accepted")==0) return R.drawable.ic_stat_exchange_accepted;
		else if(nameId.compareTo("exchange_rejected")==0) return R.drawable.ic_stat_exchange_rejected;
		else if(nameId.compareTo("recurrent_appointment_finished")==0) return R.drawable.ic_stat_recurrent_finish;
		else if(nameId.compareTo("recurrent_appointment_reminder")==0) return R.drawable.ic_stat_reminder;
		else if(nameId.compareTo("review_reminder")==0) return R.drawable.ic_stat_review;
		
		else if(nameId.compareTo("collaborator_account_blocked")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("provider_account_blocked")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("exchange_performed_by_clients")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("collaborator_appointment_reminder")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("collaborator_appointment_delayed")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("new_evaluation")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("colleague_collaborator_late")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("client_late")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("collaborator_recurrent_appointment_finished")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("evaluation_reported")==0) return R.drawable.ic_stat_default;	
		else if(nameId.compareTo("exchange_accepted_for_collaborator")==0) return R.drawable.ic_stat_default;		
		else if(nameId.compareTo("appointment_pending_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("client_late_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("exchange_accepted_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_pending_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_client")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_client_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_client_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_collaborator_for_collaborators")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_collaborator_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collab_for_collabs")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collab_for_prov")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_confirmed_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_confirmed_for_provider")==0) return R.drawable.ic_stat_default;
		else return R.drawable.ic_stat_default;

	}


	public static int notificationResourceIdApp(String nameId){

		if(nameId.compareTo("account_blocked")==0) return R.drawable.ic_stat_blocked;
		else if(nameId.compareTo("appointment_scheduled")==0) return R.drawable.ic_stat_scheduled;
		else if(nameId.compareTo("appointment_confirmed")==0) return R.drawable.ic_stat_confirmed;
		else if(nameId.compareTo("appointment_queued")==0) return R.drawable.ic_stat_queue;
		else if(nameId.compareTo("appointment_delayed")==0) return R.drawable.ic_stat_delayed;
		else if(nameId.compareTo("appointment_pending")==0) return R.drawable.ic_stat_pending;
		else if(nameId.compareTo("appointment_reminder")==0) return R.drawable.ic_stat_reminder;
		else if(nameId.compareTo("appointment_failed")==0) return R.drawable.ic_stat_failed;
		else if(nameId.compareTo("appointment_rescheduled")==0) return R.drawable.ic_stat_rescheduled;
		else if(nameId.compareTo("exchange_pending")==0) return R.drawable.ic_stat_pending;
		else if(nameId.compareTo("exchange_request")==0) return R.drawable.ic_stat_exchange;
		else if(nameId.compareTo("exchange_accepted")==0) return R.drawable.ic_stat_exchange_accepted;
		else if(nameId.compareTo("exchange_rejected")==0) return R.drawable.ic_stat_exchange_rejected;
		else if(nameId.compareTo("recurrent_appointment_finished")==0) return R.drawable.ic_stat_recurrent_finish;
		else if(nameId.compareTo("recurrent_appointment_reminder")==0) return R.drawable.ic_stat_reminder;
		else if(nameId.compareTo("review_reminder")==0) return R.drawable.ic_stat_review;
		
		else if(nameId.compareTo("collaborator_account_blocked")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("provider_account_blocked")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("exchange_performed_by_clients")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("collaborator_appointment_reminder")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("collaborator_appointment_delayed")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("new_evaluation")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("colleague_collaborator_late")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("client_late")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("collaborator_recurrent_appointment_finished")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("evaluation_reported")==0) return R.drawable.ic_stat_default;	
		else if(nameId.compareTo("exchange_accepted_for_collaborator")==0) return R.drawable.ic_stat_default;		
		else if(nameId.compareTo("appointment_pending_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("client_late_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("exchange_accepted_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_pending_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_client")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_client_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_client_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_client_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_collaborator_for_collaborators")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_canceled_by_collaborator_for_provider")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collab_for_collabs")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("recurrent_appointment_canceled_by_collab_for_prov")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_confirmed_for_collaborator")==0) return R.drawable.ic_stat_default;
		else if(nameId.compareTo("appointment_confirmed_for_provider")==0) return R.drawable.ic_stat_default;
		else return R.drawable.ic_stat_default;

	}


}
